package com.insurance.domain.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * (Comment)表实体类
 *
 * @author makejava
 * @since 2023-04-28 19:34:59
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("Comment")
@Accessors(chain = true)
public class Comment {
    //评论id
    @TableId
    private Long id;
    //保险产品id
    private Long productId;
    //根评论id
    private Long rootId;
    //评论内容
    private String content;
    //所回复的目标评论的userId（即customerid）
    private Long toCommentUserId;
    //回复目标评论id
    private Long toCommentId;
    //删除标志（0代表未删除，1代表已删除）
    private Integer delFlag;

    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}

